#ifndef RECTANGLE_H
#define RECTANGLE_H

#include "LibraryInterface.h"
#include "Vector2D.h"
#include "Shape2D.h"




class Rectangle : public Shape2D{
private:
	
	unsigned int halfOfWidth;
	unsigned int halfOfHeight;
	
public:
	Rectangle();
	Rectangle(unsigned int x, unsigned int y, unsigned int w, unsigned int h);
	~Rectangle();

	
	void SetW(unsigned int w);
	void SetH(unsigned int h);


    unsigned int GetHalfOfWidth();
    unsigned int GetHalfOfHeight();
	
	bool AreCoordinatesWithinShape(unsigned int x, unsigned int y);
	bool IsRectangleWithin(Rectangle* rect);
	static bool AreRectanglesIntersecting(Rectangle* rect1, Rectangle* rect2);

	virtual void BlitShape();


};

#endif